cmake_minimum_required(VERSION 3.0.2)
project(voronoi_layer)
add_compile_options(-std=c++14)

set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  costmap_2d
  dynamic_reconfigure
  nav_msgs
  roscpp
)

catkin_package(
  INCLUDE_DIRS include
  LIBRARIES voronoi_layer
  CATKIN_DEPENDS costmap_2d dynamic_reconfigure nav_msgs roscpp
#  DEPENDS system_lib
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)

add_library(${PROJECT_NAME} src/dynamicvoronoi.cpp src/voronoi_layer.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
